<!DOCTYPE html>
<html lang="{$config.language}">
    <head>
        {include file="common/meta" /}

        <style type="text/css">
            body {
                color:#999;
                background:url('{$background}');
                background-size:cover;
            }
            a {
                color:#fff;
            }
            .login-panel{margin-top:150px;}
            .login-screen {
                max-width:400px;
                padding:0;
                margin:100px auto 0 auto;

            }
            .login-screen .well {
                border-radius: 3px;
                -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                background: rgba(255,255,255, 1);
            }
            .login-screen .copyright {
                text-align: center;
            }
            @media(max-width:767px) {
                .login-screen {
                    padding:0 20px;
                }
            }
            .profile-img-card {
                width: 100px;
                height: 100px;
                margin: 10px auto;
                display: block;
                -moz-border-radius: 50%;
                -webkit-border-radius: 50%;
                border-radius: 50%;
            }
            .profile-name-card {
                text-align: center;
            }

            #login-form {
                margin-top:20px;
            }
            #login-form .input-group {
                margin-bottom:15px;
            }
            .input-group label{
                padding: 0 30px 10px 30px;
            }
            .input-group label.selected{
                color: #1890FF;
                border-bottom: 2px solid #1890FF;
            }
            .input-group label input{
                display: none;
            }
            .btn-default{
                background-color: #ffffff;
            }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="login-wrapper">
                <div class="login-screen">
                    <div class="well">
                        <div class="login-form">
<!--                            <img id="profile-img" class="profile-img-card" src="__CDN__/assets/img/avatar.png" />-->
<!--                            <p id="profile-name" class="profile-name-card"></p>-->
                            <h2 style="width: 100%;text-align:center; color:#000; font-size: 22px">	{$site.name}</h2>

                            <form action="" method="post" id="login-form">
                                <div id="errtips" class="hide"></div>
                                {:token()}
                                <div class="input-group" style="width: 100%; text-align:center;">
                                    <div class="radio">
                                        <label for="type-email" class="loginType selected"><input id="type-email" checked="checked" name="type" data-send-url="{:url('api/ems/send')}" data-check-url="{:url('api/validate/check_ems_correct')}" type="radio" value="email"> {:__('邮箱找回')}</label>
                                        <label for="type-mobile" class="loginType"><input id="type-mobile" name="type" type="radio" data-send-url="{:url('api/sms/send')}" data-check-url="{:url('api/validate/check_sms_correct')}" value="mobile"> {:__('手机号找回')}</label>
                                    </div>
                                </div>
                                <div class="input-group" id="emailInput">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
                                    <input type="text" class="form-control" id="pd-form-username" placeholder="用户邮箱" name="username" autocomplete="off" value="" data-rule="邮箱:required;" />
                                </div>
                                <!--<div class="input-group" id="mobileInput" style="display: none">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
                                    <input type="text" class="form-control" id="pd-form-username" placeholder="用户手机号" name="username" autocomplete="off" value="" data-rule="手机号:required;" />
                                </div>-->
                                <div class="input-group">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
                                    <input type="text" class="form-control" id="code" style="width: 65%;" placeholder="验证码" name="code" autocomplete="off" value="" data-rule="" />
                                    <a class="btn btn-default" id="sendCode" style=" width: 30%; margin-left: 5%;">获取验证码</a>
                                </div>
                                <div class="input-group">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
                                    <input type="password" class="form-control" id="pd-form-password" placeholder="输入密码" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password" />
                                </div>
                                <div class="input-group">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
                                    <input type="password" class="form-control" id="pd-form-password-re" placeholder="确认密码" name="rePassword" autocomplete="off" value="" data-rule="{:__('Password')}:required;password" />
                                </div>
                                {if $config.fastadmin.login_captcha}
                                <!--<div class="input-group">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
                                    <input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length(4)" />
                                    <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
                                        <img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
                                    </span>
                                </div>-->
                                {/if}
                                <div class="form-group" style="height: 20px;">
                                    <a href="login.html" style="float:right;margin-top: 3px;color:#1890FF;">返回登录</a>
                                </div>
                                <div class="form-group">
                                    <button type="submit" class="btn btn-info btn-lg btn-block">确认</button>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- FastAdmin是开源程序，建议在您的网站底部保留一个FastAdmin的链接 -->
<!--                    <p class="copyright"><a href="https://www.fastadmin.net">Powered By FastAdmin</a></p>-->
                </div>
            </div>
        </div>
        {include file="common/script" /}
    </body>
</html>